package constants

// 订单状态常量定义
const (
	// OrderStatusUnpaid 未付款
	OrderStatusUnpaid = 0
	// OrderStatusPaid 已付款
	OrderStatusPaid = 1
	// OrderStatusShipped 已发货
	OrderStatusShipped = 2
)

// GetOrderStatusName 根据订单状态获取状态名称
func GetOrderStatusName(status int) string {
	switch status {
	case OrderStatusUnpaid:
		return "未付款"
	case OrderStatusPaid:
		return "已付款"
	case OrderStatusShipped:
		return "已发货"
	default:
		return "未知状态"
	}
}
